<h1>{$arrData->getBadge()}</h1>
{mainoptions title=$title }
<form action="" method="post" enctype="multipart/form-data">
	<input type="hidden" name="MAX_FILE_SIZE" value="99999999" />
	<table cellspacing="0" cellpadding="0" border="0" width="100%" class="commonTable">
		<tr>
			<th>Nazwa Rangi</th>
			<td><input type="text" name="badge" value="{if $arrPostData.badge}{$arrPostData.badge}{else}{$arrData->getBadge()}{/if}" /><br/>{$errors_data.badge}</td>

		</tr>
		<tr>
			<th>Ilość punktów</th>
			<td><input type="text" name="points" value="{if $arrPostData.points}{$arrPostData.points}{else}{$arrData->getPoints()}{/if}" /><br/>{$errors_data.points}</td>

		</tr>
		<tr>
			<th>Obraz - będzie skalowany na stronie</th>
			<td><input type="file" name="image" /></td>

		</tr>
		{if $arrData && strlen($arrData->getImage()) gt 0}
		<tr>
			<th>Aktualny obraz</th>
			<td><img alt="" src="{$urlStatic}/{image h=100 w=100 src=$arrData->getImage()}" /><br /><input type="checkbox" name="removeImage" id="removeImage" /><label for="removeImage">usuń</label></td>

		</tr>
		{/if}
		<tr>
			<th>Rodzaj aktywności</th>
			<td>
				<select name="dict-actions">
					{foreach from=$arrDictActions item=obj}
						<option value="{$obj->getId()}" {if $arrData->getIdDictActions() == $obj->getId()}selected="selected"{/if}>{$obj->getDescription()}</option>
					{/foreach}
				</select>
			</td>
		</tr>
	</table>
	<p align="right">
		<input type="submit" value="Anuluj" class="cancel" onclick="document.location.href='{url UserActivityBadges='Index' id=$arrData->GetId()}'; return false;" />

		<input type="submit" value="Zapisz i przejdź do listy" />
	</p>
	<input type="hidden" name="go" value="1" />
	<input type="hidden" name="id" value={$arrData->GetId()} />
</form>
{/mainoptions}